// import Squat from "./squat";
import { EHreoStatus } from "./EHreoStatus";
import { Squat } from "./squat";
import { BuildTransition, StateMachine } from "./state-machine";


let squat = new Squat()
const option = {
    init: EHreoStatus.stand,
    transitions: {
        squat:BuildTransition(squat.from,squat.to,squat.onTransition),
        // squat: BuildTransition(EHreoStatus.stand, EHreoStatus.kneel),
        standup: BuildTransition(EHreoStatus.kneel, EHreoStatus.stand),
        jump: BuildTransition(EHreoStatus.stand, EHreoStatus.leap),
        land: BuildTransition(EHreoStatus.leap, EHreoStatus.stand),
    }
};

const fsm = new StateMachine(option);

fsm.transition.squat();
fsm.transition.standup();
fsm.transition.jump();
fsm.transition.land();